package org.jony.JProject.test;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Date;
import java.util.Properties;

import org.apache.commons.lang.time.DateFormatUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


public class GenerateURL {

	/**
	 * @param args
	 */
	private static Properties pro = new Properties();
//	static final Log log = LogFactory.getLog(getClass());
	static {
		try {
			pro.load(new FileInputStream("config.properties"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	public static void main(String[] args) {
		if(pro == null){
//			log.info("程序未找到配置文件，已经正常终止。");
			System.exit(0);
		}
		StringBuffer sb = new StringBuffer();
		System.out.println(getToday());
		sb.append("");
		
	}

	private static String getToday(){
		return DateFormatUtils.format(new Date(),"yyyy-MM-dd");
	}
	
	private static String getDatebyCond(String Cond){
		return null;
	}
}
